package com.lucas.edu.pojo;

import javax.swing.*;
import java.lang.reflect.Method;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class Handler {
    //对应的URL
    private String url;
    //对应的方法
    private Method  method;
    //方法所在的类
    private String beanName;
    //对应url的验证
    private List<String> securityList;

    public List<String> getSecurityList() {
        return securityList;
    }

    public void setSecurityList(List<String> securityList) {
        this.securityList = securityList;
    }

    public Map<String, Integer> getParamMap() {
        return paramMap;
    }

    public void setParamMap(Map<String, Integer> paramMap) {
        this.paramMap = paramMap;
    }

    //参数位置以及参数名称
    private Map<String,Integer> paramMap =  new HashMap<>();

    public Handler(){

    }

    public Handler(String url, Method method, String beanName){
        this.url = url;
        this.method = method;
        this.beanName =beanName;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Method getMethod() {
        return method;
    }

    public void setMethod(Method method) {
        this.method = method;
    }

    public String getBeanName() {
        return beanName;
    }

    public void setBeanName(String beanName) {
        this.beanName = beanName;
    }
}
